﻿using System;
using System.Collections.Generic;

namespace CarShop.Domain.Entities
{
    public class User : EntityBase<int>
    {
        public static class NameFor
        {
            public const string System = "SYSTEM";
        }

        public string Login { get; set; }
        public string PasswordHash { get; set; }
        public string PasswordSalt { get; set; }
        public bool IsDisabled { get; set; }
        public bool IsActivated { get; set; }
        public DateTime LastActivityDate { get; set; }
        public string Email { get; set; }
        public int FailedLoginAttempts { get; set; }
        public IList<Role> Roles { get; set; }
        public UserInfo UserInfo { get; set; }
        public IList<Order> Orders { get; set; } 
    }
}
